﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

using CSF.Security.Service;

namespace CSF.Service.Accounts.Client
{
    /// <summary>
    /// 应用程序业务服务客户端类
    /// </summary>
    public class ApplicationSvcClient : ClientBase<IApplicationSvc>, IApplicationSvc
    {
        #region IApplicationSvc 成员

        public List<Security.Data.Application> GetAll()
        {
            return base.Channel.GetAll();
        }

        public int Insert(Security.Data.Application entity)
        {
            return base.Channel.Insert(entity);
        }

        public Security.Data.Application GetOneByCode(string code)
        {
            return base.Channel.GetOneByCode(code);
        }

        public List<Security.Data.Application> GetEnable()
        {
            return base.Channel.GetEnable();
        }

        public List<Security.Data.Application> GetDisable()
        {
            return base.Channel.GetDisable();
        }

        public List<Security.Data.Application> GetStartsWith(string keyword, bool isDisable)
        {
            return base.Channel.GetStartsWith(keyword, isDisable);
        }

        public bool Enable(Security.Data.Application t)
        {
            return base.Channel.Enable(t);
        }

        public bool Disable(Security.Data.Application t)
        {
            return base.Channel.Disable(t);
        }

        public Security.Data.Application GetOneById(int id)
        {
            return base.Channel.GetOneById(id);
        }

        public bool UpdateById(Security.Data.Application t, int id)
        {
            return base.Channel.UpdateById(t, id);
        }

        public bool DeleteOneById(int id)
        {
            return base.Channel.DeleteOneById(id);
        }

        #endregion

        #region IDataIdKeyService<Application> 成员


        public int DeleteById(IEnumerable<int> ids)
        {
            return base.Channel.DeleteById(ids);
        }

        #endregion

        #region IDataIdKeyConfigService<Application> 成员

        public int SetDisable(IEnumerable<int> ids, bool isDisable, string modifyBy)
        {
            return base.Channel.SetDisable(ids, isDisable, modifyBy);
        }

        #endregion

        public List<Security.Data.Application> GetWebShop()
        {
            return base.Channel.GetWebShop();
        }
    }
}
